function verifylogin() {
	return true;
}

function login() {
	if (verifylogin()) {
		var url = "admin/adminLogin.do";
		var params = {signInName:$("#signInName").val(), password:$("#password").val()};
		$.post(url, params, loginCallback);
	}
}

function loginCallback(data) {
	if (data == "success") {
		window.location.href = "admin/index.do";
	} else {
		$("#error").html("用户名或密码错误！");
	}
}